home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 1TS8BOH (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.3 KB  |  34 lines

  1. package com.sun.java.swing;
  2.  
  3. import com.sun.java.accessibility.AccessibleState;
  4. import java.awt.event.FocusEvent;
  5. import java.awt.event.FocusListener;
  6.  
  7. class AbstractButton$1 implements FocusListener {
  8.    // $FF: synthetic field
  9.    AbstractButton this$0;
  10.  
  11.    public void focusGained(FocusEvent event) {
  12.       if (this.this$0.accessibleContext != null) {
  13.          this.this$0.accessibleContext.firePropertyChange("AccessibleState", (Object)null, AccessibleState.FOCUSED);
  14.       }
  15.  
  16.    }
  17.  
  18.    public void focusLost(FocusEvent event) {
  19.       if (this.this$0.accessibleContext != null) {
  20.          this.this$0.accessibleContext.firePropertyChange("AccessibleState", (Object)null, AccessibleState.FOCUSED);
  21.       }
  22.  
  23.       if (this.this$0.isFocusPainted()) {
  24.          this.this$0.repaint();
  25.       }
  26.  
  27.    }
  28.  
  29.    // $FF: synthetic method
  30.    AbstractButton$1(AbstractButton this$0) {
  31.       this.this$0 = this$0;
  32.    }
  33. }
  34.